#ifndef BOOKMARK_H
#define BOOKMARK_H

typedef struct gftp2_bookmark gftp2_bookmark;

struct gftp2_bookmark {
    char *name;                 /* short name */
    char *hostname;             /* actual Internet hostname */
    char *protocol;
    char *user;
    char *passwd;

    unsigned int port;
    int  is_folder : 1,
         save_passwd : 1;
};

extern GNode *bookmark_root;


#define GFTP2_BOOKMAKR_FILE "~/.gftp/bookmarks.xml"

gftp2_bookmark* gftp2_bookmark_new ();
void gftp2_bookmark_read_file (const char *file);
void gftp2_bookmark_save_file (const char *file);
void gftp2_bookmark_load ();



#endif
